package cn.edu.swpu.cins.u_chain.frontend.dao.user;

import cn.edu.swpu.cins.u_chain.frontend.entity.dto.user.student.SkillList;
import cn.edu.swpu.cins.u_chain.frontend.entity.dto.user.student.StudentDetail;
import cn.edu.swpu.cins.u_chain.frontend.entity.persistence.user.student.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface StudentDao {

    //添加个人所有信息
    int addStudentInfo(StudentInfoDB studentInfoDB);

    int addDegreeMajorGradeInfo(DegreeMajorGradeInfo degreeMajorGradeInfo);

    int addSkillInfos(@Param("skillList") List<SkillInfo> skillList);

    int addSkillKind(SkillKind skillKind);

    int addSkillLevel(SkillLevel skillLevel);

    int addSkillName(SkillName skillName);

    StudentDetail selectStudentDetail(int userId);

    SkillList selectSkills(int userId);

}
